<extend name="Public/base" />

<block name="wrapper">

    <div class="row">
        <div class="col-lg-12">
            <div class="panel panel-default">
                <div class="panel-heading">用户列表项</div>
                <!-- /.panel-heading -->
                <div class="panel-body">
                    <div class="dataTable_wrapper">
                        <table class="table table-striped table-bordered table-hover" id="dataTables-example">
                            <thead>
                                <tr>
                                    <th>id</th>
                                    <th>用户名</th>
                                    <th>密码</th>
                                    <th>年龄</th>
                                    <th>性别</th>
                                    <th>班期</th>
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                <foreach name="data" item="vo">
                                    <tr  class="gradeA">
                                        <td>{$vo.id}</td>
                                        <td>{$vo.username}</td>
                                        <td>{$vo.password}</td>
                                        <td>{$vo.age}</td>
                                        <td>{$vo['sex']==1? '男':'女'}</td>
                                        <td>{$vo.classid}</td>
                                        <td>
                                            <a href="{:U('User/add')}">添加</a>
                                            |
                                            <a href="{:U('User/find')}?id={$vo.id}">修改</a>
                                            |
                                            <a href="{:U('User/delete')}?id={$vo.id}">禁用</a>
                                        </td>

                                    </tr>

                                </foreach>
                                <tr class="gradeA">
                                    <td colspan="6">{$show}</td>

                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <!-- /.table-responsive --> </div>
                <!-- /.panel-body --> </div>
            <!-- /.panel --> </div>
        <!-- /.col-lg-12 --> </div>

</block>